/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fine.cars;

/**
 *
 * @author 19029765-9
 */
public class Vendedor {
    
    public void AgregarVendedor(String VendRut,String VendNombre,String VendApPat,String VendApMat){
       try {            
            PreparedStatement pstm = con.getConnection().prepareStatement("insert into " + 
                    "(VendRut, VendNombre, VendApPat, VendApMat)" +
                    " values(?,?,?,?)"); //por definir           
            pstm.setString(1, VendRut);
            pstm.setString(2, VendNombre);
            pstm.setString(3, VendApPat);
            pstm.setString(4, VendApMat);
            
            pstm.execute();
            pstm.close();            
         }catch(SQLException e){
         System.out.println(e);
      }

   }
    
    
    
    
}
